
import { useRoutes } from 'react-router-dom'
import router from './router'
import { Suspense } from 'react'
import Loading from './computents/Loading'

function App() {
  const el=useRoutes(router)
  return (
    <div>
      <Suspense fallback={<Loading/>}>
      {el}
      </Suspense>
    </div>
  )
}

export default App
